package com.gupaoedu.design.strategy.task;

import java.util.Date;

/**
 * <p>汽车保养的4s 1店</p>
 *
 * @author Andy
 * @date 2018/3/13.
 */
public class Car4sShopFirst implements CarMaintainMent{

    public MaintainResult carMaintain(Car car) {
        System.out.println("欢迎"+car.getName()+"来到1号店！！！");
        System.out.println("我们来帮您的爱车进行护理");
        System.out.println(car.getName()+"保养进行中...");
        MaintainResult mr = new MaintainResult();
        mr.setMsg("保养完成");
        car.setKilometre(12000.23);
        car.setMaintainDate(new Date());
        mr.setData(car);
        return mr;
    }
}
